Skip to main content

UntypedApi<T>

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class UntypedApi<T> : object, IUntypedApi

Properties

Db

View Source
Declaration
public IDbConnection Db { get; set; }

DbCmd

View Source
Declaration
public IDbCommand DbCmd { get; set; }

Methods

Exec<TReturn>(Func<IDbCommand, TReturn>)

View Source
Declaration
public TReturn Exec<TReturn>(Func<IDbCommand, TReturn> filter)
Returns

<TReturn>

Parameters
TypeName
Func<IDbCommand,<TReturn>>filter
Type Parameters
  • TReturn

Exec<TReturn>(Func<IDbCommand, Task<TReturn>>)

View Source
Declaration
public Task<TReturn> Exec<TReturn>(Func<IDbCommand, Task<TReturn>> filter)
Returns

Task<<TReturn>>

Parameters
TypeName
Func<IDbCommand,Task<<TReturn>>>filter
Type Parameters
  • TReturn

Exec(Action<IDbCommand>)

View Source
Declaration
public void Exec(Action<IDbCommand> filter)
Parameters
TypeName
Action<IDbCommand>filter

SaveAll(IEnumerable)

View Source
Declaration
public int SaveAll(IEnumerable objs)
Returns

System.Int32

Parameters
TypeName
IEnumerableobjs

Save(Object)

View Source
Declaration
public bool Save(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

SaveAllAsync(IEnumerable, CancellationToken)

View Source
Declaration
public Task<int> SaveAllAsync(IEnumerable objs, CancellationToken token)
Returns

Task<System.Int32>

Parameters
TypeName
IEnumerableobjs
CancellationTokentoken

SaveAsync(Object, CancellationToken)

View Source
Declaration
public Task<bool> SaveAsync(object obj, CancellationToken token)
Returns

Task<System.Boolean>

Parameters
TypeName
System.Objectobj
CancellationTokentoken

InsertAll(IEnumerable)

View Source
Declaration
public void InsertAll(IEnumerable objs)
Parameters
TypeName
IEnumerableobjs

InsertAll(IEnumerable, Action<IDbCommand>)

View Source
Declaration
public void InsertAll(IEnumerable objs, Action<IDbCommand> commandFilter)
Parameters
TypeName
IEnumerableobjs
Action<IDbCommand>commandFilter

Insert(Object, Boolean)

View Source
Declaration
public long Insert(object obj, bool selectIdentity = false)
Returns

System.Int64

Parameters
TypeName
System.Objectobj
System.BooleanselectIdentity

Insert(Object, Action<IDbCommand>, Boolean)

View Source
Declaration
public long Insert(object obj, Action<IDbCommand> commandFilter, bool selectIdentity = false)
Returns

System.Int64

Parameters
TypeName
System.Objectobj
Action<IDbCommand>commandFilter
System.BooleanselectIdentity

UpdateAll(IEnumerable)

View Source
Declaration
public int UpdateAll(IEnumerable objs)
Returns

System.Int32

Parameters
TypeName
IEnumerableobjs

UpdateAll(IEnumerable, Action<IDbCommand>)

View Source
Declaration
public int UpdateAll(IEnumerable objs, Action<IDbCommand> commandFilter)
Returns

System.Int32

Parameters
TypeName
IEnumerableobjs
Action<IDbCommand>commandFilter

Update(Object)

View Source
Declaration
public int Update(object obj)
Returns

System.Int32

Parameters
TypeName
System.Objectobj

UpdateAsync(Object, CancellationToken)

View Source
Declaration
public Task<int> UpdateAsync(object obj, CancellationToken token)
Returns

Task<System.Int32>

Parameters
TypeName
System.Objectobj
CancellationTokentoken

Update(Object, Action<IDbCommand>)

View Source
Declaration
public int Update(object obj, Action<IDbCommand> commandFilter)
Returns

System.Int32

Parameters
TypeName
System.Objectobj
Action<IDbCommand>commandFilter

DeleteAll()

View Source
Declaration
public int DeleteAll()
Returns

System.Int32

Delete(Object, Object)

View Source
Declaration
public int Delete(object obj, object anonType)
Returns

System.Int32

Parameters
TypeName
System.Objectobj
System.ObjectanonType

DeleteNonDefaults(Object, Object)

View Source
Declaration
public int DeleteNonDefaults(object obj, object filter)
Returns

System.Int32

Parameters
TypeName
System.Objectobj
System.Objectfilter

DeleteById(Object)

View Source
Declaration
public int DeleteById(object id)
Returns

System.Int32

Parameters
TypeName
System.Objectid

DeleteByIds(IEnumerable)

View Source
Declaration
public int DeleteByIds(IEnumerable idValues)
Returns

System.Int32

Parameters
TypeName
IEnumerableidValues

Cast(IEnumerable)

View Source
Declaration
public IEnumerable Cast(IEnumerable results)
Returns

IEnumerable

Parameters
TypeName
IEnumerableresults

Implements